#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Create by zhang
# Create on 2022/6/22 22:09
from typing import List

from pandas import DataFrame
from domain.transaction_data.repository.impl import stock_repository as repo


def acquire_stock_list(reacquire=False) -> DataFrame:
    """
    读取或更新当前所有正常上市交易的股票列表csv文件
    :param reacquire:
    :return:
    """
    return repo.acquire_stock_list(reacquire=reacquire)


def get_stock_industres() -> List[str]:
    return repo.get_stock_industres()


def get_stock_list_by_industry(industry) -> DataFrame:
    return repo.get_stock_list_by_industry(industry)


def get_stock_addresses():
    return repo.get_stock_addresses()


def get_stock_list_by_address(address):
    return repo.get_stock_list_by_address()